"""
distribution plot
显示分布规律
"""
import seaborn as sns
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import sys

vals = []
while True:
    val = sys.stdin.readline()
    if not val:
        break
    val = val[:-1]
    vals.append(float(val))

vals = np.array(vals, dtype=float);

vals_s = pd.Series(vals)
print(vals_s.describe())

# bins 区间个数
# kde 是否显示密度曲线
# vertical 是否竖直方向
sns.distplot(vals,
             bins=100,
             kde=True,
             vertical=False,
             color='r',
             )
plt.show()
